'use strict';

module.exports = app => {
    const { INTEGER, STRING, DATE, BIGINT, BOOLEAN } = app.Sequelize;

    const Admin = app.model.define('admin', {
        id: { type: BIGINT, primaryKey: true, autoIncrement: true },
        username: STRING(100),
        nickname: STRING(100),
        password: STRING(150),
        avatar: STRING(255),
        create_time: DATE,
        update_time: DATE,
        delete_time: DATE
    });


    return Admin;
}